home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2001 Haziran
/
CHIP Haziran2001.iso
/
prog
/
share
/
04
/
setup.exe
/
MM6.Cab
/
F1458_WipeTransition.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5
< prev
next >
Wrap
Text File
|
2000-08-17
|
8KB
|
181 lines
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Wipe Transition Action</title>
<meta name="generator" content="Adobe GoLive 5">
</head>
<body bgcolor="white">
<center>
<font size="6">Wipe Transition Action</font>
<hr>
</center>
<csactionclass name="Wipe Transition" function="CSStartWipe" nsversion="4" ieversion="4">
<csactionparam name="layer" type="GLActionLayerParam"></csactionparam>
<csactionparam name="steps" type="GLActionNumParam"></csactionparam>
<csactionparam name="mode" type="GLActionEnumParam">
<csactionenum name="Wipe In From Left To Right" value='"_inRight"'>
<csactionenum name="Wipe In From Right To Left" value='"_inLeft"'>
<csactionenum name="Wipe In From Top To Bottom" value='"_inBottom"'>
<csactionenum name="Wipe In From Bottom To Top" value='"_inTop"'>
<csactionenum name="Wipe Out From Left To Right" value='"_outRight"'>
<csactionenum name="Wipe Out From Right To Left" value='"_outLeft"'>
<csactionenum name="Wipe Out From Top To Bottom" value='"_outBottom"'>
<csactionenum name="Wipe Out From Bottom To Top" value='"_outTop"'>
<csactionenum name="Wipe Center In" value='"_inCenter"'>
<csactionenum name="Wipe Center Out" value='"_outCenter"'>
</csactionparam>
</csactionclass>
<p>IE Functions Script
<script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
</p>
<p>MainLoop Functions Script
<script language="JavaScript1.2" src="../../GlobalScripts/MainLoop.scpt"></script>
</p>
<p>StyleVis Functions Script
<script language="JavaScript1.2" src="../../GlobalScripts/StyleVis.scpt" cyberversion="N1.2"></script>
</p>
<p>SytleTrans Functions Script
<script language="JavaScript1.2" src="../../GlobalScripts/StyleTrans.scpt"></script>
</p>
<p>Wipe Transition Script
<script language="JavaScript1.2" cyberversion="N1.2"><!--
function CSStartWipe (action)
{
var el=CSCreateTransElement (action[1], action[2]);
if (el==null) return;
var dir=action[3];
if (dir=="_inLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
else if (dir=="_inRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="in";}
else if (dir=="_outLeft") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
else if (dir=="_outRight") {el.steps=el.clipRect.width/el.maxValue; el.modus="out";}
else if (dir=="_inTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
else if (dir=="_inBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="in";}
else if (dir=="_outTop") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
else if (dir=="_outBottom") {el.steps=el.clipRect.height/el.maxValue; el.modus="out";}
else if (dir=="_inCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="in";}
else if (dir=="_outCenter") {el.HSteps=el.clipRect.width/el.maxValue; el.VSteps=el.clipRect.height/el.maxValue; el.modus="out";}
if (el.modus=="") return;
el.currentValue=0;
el.glDir=action[3];
CSStartFunction(CSDoWipe,el);
}
function CSDoWipe (info)
{
var el = info.data;
if (el==null) return false;
if (el.currentValue==el.maxValue) { CSFinishWipe(el); return false; }
var r = new CSRect(el.clipRect.left,el.clipRect.top,el.clipRect.width,el.clipRect.height);
var dir=el.glDir;
if (dir=="_inLeft") {r.left=r.width-el.currentValue*el.steps;}
else if (dir=="_inTop") {r.top=r.height-el.currentValue*el.steps;}
else if (dir=="_inRight") {r.width=el.currentValue*el.steps;}
else if (dir=="_inBottom") {r.height=el.currentValue*el.steps;}
else if (dir=="_outLeft") {r.width=r.width-el.currentValue*el.steps;}
else if (dir=="_outTop") {r.height=r.height-el.currentValue*el.steps;}
else if (dir=="_outRight") {r.left=el.currentValue*el.steps;}
else if (dir=="_outBottom") {r.top=el.currentValue*el.steps;}
else if (dir=="_inCenter") {r=CSCenterRectIn(el,r);}
else if (dir=="_outCenter") {r=CSCenterRectOut(el,r);}
CSSetLayerClip(el,r);
el.currentValue+=1;
return true;
}
function CSFinishWipe (el)
{
if (el.modus=="in") CSSetLayerClip(el,el.clipRect);
else {
el.clipRect=new CSRect(0,0,el.width,el.height);
CSSetLayerClip(el,el.clipRect);
CSSetStyleVis(el.layer,0);
}
CSDisposeTransElement(el);
}
function CSCenterRectIn(el,r)
{
var hValue= el.currentValue*el.HSteps/2;
var vValue= el.currentValue*el.VSteps/2;
r.left=Math.round(r.left+r.width/2-hValue);
r.top=Math.round(r.top+r.height/2-vValue);
r.width=Math.round(hValue*2);
r.height=Math.round(vValue*2);
return r;
}
function CSCenterRectOut(el,r)
{
var hValue= el.currentValue*el.HSteps/2;
var vValue= el.currentValue*el.VSteps/2;
r.left+=Math.round(hValue);
r.top+=Math.round(vValue);
r.width-=Math.round(hValue*2);
r.height-=Math.round(vValue*2);
return r;
}
// -->
</script>
</p>
<table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
<tr height="1" cntrlrow>
<td width="1" height="1"><spacer type="block" width="1" height="1"></td>
<td width="4" height="1"><spacer type="block" width="4" height="1"></td>
<td width="76" height="1"><spacer type="block" width="76" height="1"></td>
<td width="140" height="1"><spacer type="block" width="140" height="1"></td>
</tr>
<tr height="6">
<td width="1" height="6"><spacer type="block" width="1" height="6"></td>
<td width="4" height="6"><spacer type="block" width="4" height="6"></td>
<td width="76" height="6"><spacer type="block" width="76" height="6"></td>
<td width="140" height="6"><spacer type="block" width="140" height="6"></td>
</tr>
<tr height="3">
<td width="1" height="3"><spacer type="block" width="1" height="3"></td>
<td width="4" height="3"><spacer type="block" width="4" height="3"></td>
<td width="76" height="3"><spacer type="block" width="76" height="3"></td>
<td width="140" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
<csactioncntrl name="layer" x="80" y="6" width="136" height="18" alignx="scale" aligny="top">
</td>
</tr>
<tr height="19">
<td width="1" height="19"><spacer type="block" width="1" height="19"></td>
<td width="4" height="19"><spacer type="block" width="4" height="19"></td>
<td width="76" height="19" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
<csactioncntrl type="InfoText" value="Floating Box" x="4" y="9" width="70" height="17" alignx="left" aligny="top">
</td>
</tr>
<tr height="3">
<td width="1" height="3"><spacer type="block" width="1" height="3"></td>
<td width="4" height="3"><spacer type="block" width="4" height="3"></td>
<td width="76" height="3"><spacer type="block" width="76" height="3"></td>
<td width="140" height="22" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
<csactioncntrl name="mode" x="80" y="28" width="136" height="18" alignx="scale" aligny="top">
</td>
</tr>
<tr height="19">
<td width="1" height="19"><spacer type="block" width="1" height="19"></td>
<td width="4" height="19"><spacer type="block" width="4" height="19"></td>
<td width="76" height="19" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
<csactioncntrl type="InfoText" value="Transition" x="4" y="31" width="72" height="16" alignx="left" aligny="top">
</td>
</tr>
<tr height="3">
<td width="1" height="3"><spacer type="block" width="1" height="3"></td>
<td width="4" height="3"><spacer type="block" width="4" height="3"></td>
<td width="76" height="3"><spacer type="block" width="76" height="3"></td>
<td width="140" height="102" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
<csactioncntrl name="steps" x="80" y="50" width="63" height="18" alignx="left" aligny="top">
</td>
</tr>
<tr height="99">
<td width="1" height="99"><spacer type="block" width="1" height="99"></td>
<td width="4" height="99"><spacer type="block" width="4" height="99"></td>
<td width="76" height="99" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
<csactioncntrl type="InfoText" value="Steps" x="4" y="53" width="35" height="16" alignx="left" aligny="top">
</td>
</tr>
</table>
</body>
</html>